<?php

class SecurePage extends Page {
    /**
	* Defines the Secure page type
	* Any page using this page type will be forced to use HTTPS
	*/
}
 
class SecurePage_Controller extends Page_Controller {
 
	function init() {
		parent::init();
 
		// causes an HTTP Redirect if in Non-SSL mode
		Director::forceSSL();
	}
 
	function SecurePage() {
		return true;
	}

}

?>